package com.example.demo01.test01.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.example.demo01.test01.pojo.Study;
import com.example.demo01.test01.pojo.StudyDto;
import com.example.demo01.test01.pojo.StudyVo;


/**
 * @Author: JianhuaWang
 * @Date: create in 2021/6/24 15:32
 * @Description:
 */
@Repository
public interface StudyMapper {
    /**
     * 新增
     **/
    int insert(Study study);

    /**
     * 通过Id查询
     **/
    Study selectStudyById(Long studyId);

    /**
     * 通过hospitalCode和studyInstanceUid查询
     **/
    Study selectStudyByHospitalCodeAndStudyInstanceUid(@Param("hospitalCode") String hospitalCode, @Param("studyInstanceUid") String studyInstanceUid);


    /**
     * 条件分页查询
     *
     * @param studyDto
     * @return
     */
    List<StudyVo> selectPageStudy(StudyDto studyDto);

    /**
     * 根据检查id查询dicom影像路劲
     *
     * @param studyId
     * @return
     */

    /**
     * 根据id修改状态
     *
     * @param status
     * @param studyId
     * @return
     */
    int updateStudyStatusByStudyId(@Param("status") Integer status, @Param("studyId") Long studyId);
}
